package org.example.guavalearn.proxy;

import com.google.common.reflect.Reflection;

class RepositoryManager {

    private static final RepositoryInvocationHandler handler = new RepositoryInvocationHandler();

    public static <T extends Repository<?>> T createRepository(Class<? extends T> cls) {
        return Reflection.newProxy(cls, handler);
    }
}
